package cn.kgc.springboot.day01.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 课工场
 * @version 1.0
 * @date 2024/3/18
 * @description
 */
@RestController
@RequestMapping("hello")
public class HelloController {


    @GetMapping("m1")
    public Map<String,Object>  method1(){
        HashMap<String, Object> result = new HashMap<>();
        result.put("code",200);
        result.put("msg","hello  springboot");
        return  result;
    }

}
